<div class="comentarios index">
    <h1># Coment&aacute;rios</h1>
        <h2><?php
        echo $paginator->counter(array(
        'format' => __('P&aacute;gina %page% de %pages%, coment&aacute;rios de %start% a %end% de %count%', true)
        ));
        ?>    </h2>
    <table style="border: 0px;">
        <?php
        $i = 0;
        foreach ($comentarios as $comentario):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
            ?>
        <tr<?php echo $class;?>>
            <td>
                    <?php echo $formatacao->dataHora($comentario['Comentario']['created'], false) ?></td>
            <td>
                <b><?php
                        if($comentario['Comentario']['site'])
                            echo $html->link($comentario['Comentario']['nome'], $comentario['Comentario']['site'], array('target'=>'_blank'));
                        else
                            echo $comentario['Comentario']['nome'];
                        ?></b> comentou o texto
                    <?php echo $html->link($comentario['Texto']['titulo'], '/textos/'.$comentario['Texto']['slug']); ?><br />
                <blockquote>
                        <?php echo nl2br($comentario['Comentario']['comentario']) ?>
                </blockquote>
            </td>
        </tr>
        <?php endforeach; ?>
    </table>
</div>
<div class="paging">
    <?php echo $paginator->prev('<< '.__('anterior', true), array(), null, array('class'=>'disabled'));?>
    | 	<?php echo $paginator->numbers();?>
    <?php echo $paginator->next(__('próxima', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
